package com.foreknow.demo2;

public class Admin {
    private int id;
    private String name;
    private String pass;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public static void main(String[] args) {
        Admin admin1 = new Admin();
        admin1.setId(100);
        admin1.setName("tom");
        admin1.setPass("123456");

        int id = admin1.getId();
        String name = admin1.getName();
        String pass = admin1.getPass();

        System.out.println(id+"-----"+name+"-----"+pass);

        Admin admin2 = new Admin();
        admin2.setId(200);
        admin2.setName("tom2");
        admin2.setPass("222222");

        int id1 = admin2.getId();
        String name1 = admin2.getName();
        String pass1 = admin2.getPass();

        System.out.println(id1+"-----"+name1+"-----"+pass1);
    }
}
